/**
 * Copyright (c) 2011 Nokia Corporation.
 *
 * CAUTION: This class is in very early experimental state.
 *
 */


#include "SpriteBatch.h"



void SpriteBatch::draw( int texture, float x, float y, float w, float h, float angle )
{
    SpriteDrawInfo sdi;
    sdi.textureHandle = texture;
    sdi.setTargetPos( x, y );
    sdi.setScale( w, h );
    sdi.angle = angle;
    draw( &sdi );
}


void SpriteBatch::draw( int texture, float x, float y, float w, float h, float *col )
{
    SpriteDrawInfo sdi;
    sdi.textureHandle = texture;
    sdi.setTargetPos( x, y );
    sdi.setScale( w, h );
    if (col)
        sdi.setColor( col );
    draw( &sdi );
}


void SpriteBatch::draw( int texture, float x, float y, float w, float h, float *col, float angle )
{
    SpriteDrawInfo sdi;
    sdi.textureHandle = texture;
    sdi.angle = angle;
    sdi.setTargetPos( x, y );
    sdi.setScale( w, h );
    if (col)
        sdi.setColor( col );
    draw( &sdi );
}

